import api from '../api.js'
export default {
  GetUserListData (params) {
    return api.fetchGet('/authz/user/findBy.do', params);
  },
  SaveUserData (params) {
    if(params.id){
      return api.fetchPost('/authz/user/update.do', params);
    }
    return api.fetchPost('/authz/user/save.do', params);
  },
  CheckLoginId (params){
    return api.fetchPost('/authz/user/is_login_id.do', params);
  },
  DeleteUserBatch (params) {
    return api.fetchPost('/authz/user/delete_batch.do', params);
  },
  ResetPassword (params){
    return api.fetchPost('/authz/user/modify_pwd.do', params);
  },
  FindRoleForSetup (params) {
    return api.fetchGet('/authz/user/find_role_for_setup.do', params);
  },
  SetRoleForUser (params) {
    return api.fetchPost('/authz/user/setup_role_for_user.do', params);
  },
  FindParkGroupForSetup (params) {
    return api.fetchGet('/authz/user/find_parking_group_for_setup.do', params);
  },
  SetParkGroupForUser (params) {
    return api.fetchPost('/authz/user/setup_parking_group_for_user.do', params);
  }
}